package com.ad.pet.common.data.utils.ui;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ad.pet.App;


/**
 * Created by z on.
 * Des:
 * Date: 2017/3/17
 */

public class LayoutInflaterUtil {


    private static LayoutInflater sLayoutInflater = LayoutInflater.from(App.getApp().getApplicationContext());

    public static View inflater(int id) {
        return sLayoutInflater.inflate(id, null);
    }

    public static View inflater(int id, ViewGroup parentView, boolean has) {
        return sLayoutInflater.inflate(id, parentView, has);
    }
}
